<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>学生信息</h1>
编号:<span th:text="${st.id}"></span>
姓名:<input type="text" th:value="${st.name}">

<table border="1">
    <thead>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>地址</th>
    </thead>
    <tbody th:each="x:${list}">
            <td th:text="${x.id}"></td>
            <td th:text="${x.name}"></td>
            <td th:if="${x.age==22}">
                男
            </td>
            <td th:if="${x.age==23}">
                女
            </td>
            <td th:if="${x.age==24}">
                人妖
            </td>
            <td >
               <select>
                   <option value="成都" th:selected="${x.address=='成都'}">成都</option>
                   <option value="南充" th:selected="${x.address=='南充'}">南充</option>
                   <option value="绵阳" th:selected="${x.address=='绵阳'}">绵阳</option>
               </select>
            </td>
    </tbody>
</table>

</body>
</html>